//定时处理青少年模式时间
var site='https://mangers.flami.live'; //站点域名
var schedule = require("node-schedule");
var request  = require('request');

var rule = new schedule.RecurrenceRule();

rule.hour=0;
rule.minute = 0;
rule.second = 0;


var k = schedule.scheduleJob(rule, function(){
    upTeenagerTime();
});


function upTeenagerTime(){
    request(site+"/appapi/teenagertime/index",function(error, response, body){
        //console.log(error);
        if(error) return;
        if(!body) return;

    });

}